package com.zzw.service.impl;

import com.zzw.dao.StockDao;
import com.zzw.pojo.Stock;
import com.zzw.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class StockServiceImpl implements StockService {
    @Autowired
    private StockDao stockDao;
    @Override
    public List<Stock> findAll() {
        return stockDao.findAll();
    }
}
